package com.sprboot.demo.domain.vo.second;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Entity
@Table(name = "tb_customer")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Customer implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7469310768292842152L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(name = "cus_name", insertable = true, updatable = true)
	private String cusName;
	// insertable属性表示在使用“INSERT”脚本插入数据时，是否需要插入该字段的值
	// updatable属性表示在使用“UPDATE”脚本插入数据时，是否需要更新该字段的值
	@Column(name = "cus_email", insertable = true, updatable = true)
	private String cusEmail;

}
